package com.zp.pattern.decorator;

public class SubDecorator extends Decorator {
	public SubDecorator(Component component){
		super(component);
	}
	
	@Override
	public void doSomething() {
		super.doSomething();
		this.say();
	}
	
	public void say(){
		System.out.println("功能B：具体装饰对象1：继承了Decorator");
	}
}
